// 封装本地存储存储数据与读取数据方法
// 存储数据
export const SET_TOKEN = (token) => {
    localStorage.setItem('OPEN_TOKEN', token)
}

// 本地存储获取数据
export const GET_TOKEN = () => {
    return localStorage.getItem('OPEN_TOKEN')
}

// 本地存储删除数据方法
export const REMOVE_TOKEN = () => {
    localStorage.removeItem('OPEN_TOKEN')
}

// 记住密码
// 存储数据
export const SET_REMEMBER = (REMEMBER) => {
    localStorage.setItem('OPEN_REMEMBER', REMEMBER)
}

// 本地存储获取数据
export const GET_REMEMBER = () => {
    return localStorage.getItem('OPEN_REMEMBER')
}

// 本地存储删除数据方法
export const REMOVE_REMEMBER = () => {
    localStorage.removeItem('OPEN_REMEMBER')
}

export const SET_USER = (USER) => {
    localStorage.setItem('OPEN_USER', USER)
}

// 本地存储获取数据
export const GET_USER = () => {
    return localStorage.getItem('OPEN_USER')
}

// 本地存储删除数据方法
export const REMOVE_USER = () => {
    localStorage.removeItem('OPEN_USER')
}

export const SET_PASSWORD = (PASSWORD) => {
    localStorage.setItem('OPEN_PASSWORD', PASSWORD)
}

// 本地存储获取数据
export const GET_PASSWORD = () => {
    return localStorage.getItem('OPEN_PASSWORD')
}

// 本地存储删除数据方法
export const REMOVE_PASSWORD = () => {
    localStorage.removeItem('OPEN_PASSWORD')
}

